package st.magnuzon.book.client.scaffold.ui;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class ReturnLinkWidget extends Composite {

	private static ReturnLinkWidgetUiBinder uiBinder = GWT.create(ReturnLinkWidgetUiBinder.class);
	
	@UiField
    Anchor returnLink;

	interface ReturnLinkWidgetUiBinder extends UiBinder<Widget, ReturnLinkWidget> {
	}

	public ReturnLinkWidget() {
		initWidget(uiBinder.createAndBindUi(this));
	}
	
	public void setReturnUrl(String url) {
        returnLink.setHref(url);
    }
}
